|
|
6.2 | Dynamic Routing Overview | ||
| 6.2.6 | Link-state routing protocol features |
|
The second basic algorithm used for
routing is the link-state algorithm. Link-state algorithms are also
known as Dijkstras algorithm or as SPF (shortest path first)
algorithms. Link-state routing algorithms maintain a complex database
of topology information. The distance vector algorithm has nonspecific
information about distant networks and no knowledge of distant
routers. A link-state routing algorithm maintains
full knowledge of distant routers and how they interconnect. Link-state routing uses:
Network discovery processes for link
state routing The SPF algorithm computes network
reachability. The router constructs this logical topology as a tree,
with itself as the root, consisting of all possible paths to each
network in the link-state protocol internetwork. It then sorts these
paths Shortest Path First (SPF). The router lists the best paths and
the interfaces to these destination networks in the routing table. It
also maintains other databases of topology elements and status
details. The router that first becomes aware of
a link-state topology change forwards the information so that all
other routers can use it for updates.
When the router receives an LSA, the database is updated with the most recent information and computes a map of the internetwork using the accumulated data and calculates the shortest path to other networks using the SPF algorithm. Each time an LSA packet causes a change to the link-state database, SPF recalculates the best paths and updates the routing table. Link-state concerns:
Routers running link-state protocols
require more memory and perform more processing than distance vector
routing protocols. Routers must have sufficient memory to be able to
hold all the information from the various databases, the topology
tree, and the routing table.
|